﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Message.aspx.cs" Inherits="Message" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<div class="Message">
		<div style="width: 225px; float: left; border: 0px solid black; margin-top: 10px;">
		<%--查询--%>
		<div class="ShowColumnFile2">
			<div class="Title">
				<label>查询</label>
			</div>
			<div class="Content" style="height: 200px;">
				
				<label >姓名</label>
				
				<asp:TextBox runat="server" ID="TbQueryName" CssClass="InputControl"></asp:TextBox>
				
				<label>留言</label>
				
				<asp:TextBox runat="server" ID="TbQueryMessage" CssClass="InputControl"></asp:TextBox>
				
				<%--<asp:Button runat="server" ID="BtnQuery" Text="查询" CssClass="MessageQueryButton" />--%>
				<asp:LinkButton runat="server" ID="BtnQuery" Text="查询" CssClass="QueryButton"></asp:LinkButton>
				
			</div>
		</div>
		</div>

		<div style="width: 740px; float: right; border: 0px solid black; margin-top: 10px;">
		<%--显示留言--%>
		<div class="ShowColumnFile">
			<div class="Title">
				<div class="Left">
					<label>留言板</label>
				</div>
				
				<div class="Right"></div>
			</div>
			<div class="Content">
				<asp:GridView runat="server" ID="Grv" PageSize="10" AllowPaging="true" CssClass="ShowFileTable" >
					<Columns>
						<asp:TemplateField ItemStyle-CssClass="First">
							<ItemTemplate>
								<asp:Image ID="Image1" runat="server" CssClass="Pic" />
							</ItemTemplate>
						</asp:TemplateField>
						<asp:BoundField DataField="PersonName" ItemStyle-CssClass="Second" ItemStyle-Width="100" />
						<asp:BoundField DataField="Content" ItemStyle-CssClass="Second" />
						<asp:BoundField DataField="StateName" ItemStyle-CssClass="Second" ItemStyle-Width="100" />
						<%--<asp:BoundField DataField="MessageDateTime" ItemStyle-CssClass="CoursewareSort" />--%>
					</Columns>
				</asp:GridView>
				<div class="Bottom">
					<div class="Page">
						<asp:LinkButton ID="LBtnFirst" runat="server" Text="第一页"></asp:LinkButton>
						<asp:LinkButton ID="LBtnForward" runat="server" Text="上一页"></asp:LinkButton>
						<asp:LinkButton ID="LBtnNext" runat="server" Text="下一页"></asp:LinkButton>
						<asp:LinkButton ID="LBtnLast" runat="server" Text="最后一页"></asp:LinkButton>
					</div>
				</div>
			</div>
		</div>
		
		<%--用户添加留言--%>
		<div class="FormStyle" style="margin-top: 20px; border: 0px solid black; float: left; margin-left: 20px;">
			<div class="Title">
				<label class="First">用户留言</label>
			</div>
			
			<div class="Content">
			<table>
				<tr>
					<td class="FirstCol">姓名</td>
					<td><asp:TextBox runat="server" ID="TbPersonName" CssClass="Input"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="FirstCol">电子邮箱</td>
					<td><asp:TextBox runat="server" ID="TbEMail" CssClass="Input"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="FirstCol">联系电话</td>
					<td><asp:TextBox runat="server" ID="TbPhone" CssClass="Input"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="FirstCol">留言</td>
					<td><asp:TextBox runat="server" ID="TbMessage" TextMode="MultiLine" CssClass="Input" Rows="6" Columns="40"></asp:TextBox></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<asp:LinkButton runat="server" ID="BtnAddMessage" Text="留言" CssClass="Operation"></asp:LinkButton>
					</td>
				</tr>
			</table>
			</div>
			
		</div>
		</div>
	</div>
</asp:Content>

